package offer.String;

/**
 * Description：
 * Author: zhangc
 * Date：2017/7/21 16:44
 */
public class CharRanged {


    public static void getAllRanged(Character[] chars){
        if (chars.length <= 0)
            return;
        else allRanged(chars,0,chars.length-1);
    }

    private static void allRanged(Character[] chars,int start ,int end ){
        if (start == end)
            System.out.println(chars[start]);
        else {
            for (int i = start+1; i <= end ; i++) {
                System.out.println(chars[i]);
            }
        }
    }

}
